home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr44 / frasrc19.zip / BIGINIT.H < prev    next >
C/C++ Source or Header  |  1995-01-29  |  949b  |  39 lines

  1. /* bignum.h */
  2. /* Wesley Loewer's Big Numbers.        (C) 1994, Wesley B. Loewer */
  3.  
  4. #ifndef _BIGINIT_H
  5. #define _BIGINIT_H
  6.  
  7. #include "bignum.h"
  8. #include "bigflt.h"
  9.  
  10.  
  11.  
  12.  
  13. /* values that bf_math can hold, */
  14. /* 0 = bf_math is not being used */
  15. /* 1 = bf_math is being used     */
  16. /*
  17. If bf_math is used, then bigflt_t numbers are always used to
  18. keep track of corners and center-mag.  The actual calculations
  19. are done with either bn_t or bf_t.
  20. */
  21. #define BIGNUM 1  /* bf_math is being used with bn_t numbers */
  22. #define BIGFLT 2  /* bf_math is being used with bf_t numbers */
  23.  
  24.  
  25. /* functions defined in biginit.c */
  26.  
  27. void calc_lengths(void);
  28. void free_bf_vars(void);
  29. bn_t alloc_stack(size_t size);
  30. int save_stack(void);
  31. void restore_stack(int old_offset);
  32. void init_bf_dec(int dec);
  33. void init_bf_length(int bnl);
  34. void init_big_pi(void);
  35. void show_var_bf(char *s, bf_t n);
  36. void show_var_bf_hex(char *s, bf_t n);
  37.  
  38. #endif
  39.